package com.person.consumer.feignclient;

import com.person.common.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@Component
@FeignClient(name = "CLOUDPAYMENTSERVICE")
public interface ConsumerFeignClient {
    @GetMapping("/providerpayment9001/payment/find/{id}")
    public CommonResult findOne(@PathVariable("id") int id);

    @GetMapping("/providerpayment9001/payment/gettimeout")
    public CommonResult getTimeout();

}
